import pyvisa

dev = pyvisa.ResourceManager()

ip_addr = '192.168.0.100'
ov = dev.open_resource('TCPIP0::%s::INSTR' % ip_addr)

print ov.query('ROM?')